/**
 * 
 */
package cn.miao.learn.ssh.controllers;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author nealmiao
 *
 */
@Service(value="helloAction")
@Scope("prototype")
public class HelloAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4716915241002489395L;
	private String str;

	public String hello() {
		str = "hello world! 你好，世界!";
		return "success";
	}
	
//	private void excute() {
//		// TODO Auto-generated method stub
//
//	}

	/**
	 * @return the str
	 */
	public String getStr() {
		return str;
	}

	/**
	 * @param str
	 *            the str to set
	 */
	public void setStr(String str) {
		this.str = str;
	}
}
